package com.darwin.darwinUI.containers
{
	import com.darwin.darwinUI.core.UISprite;
	
	/**
	 * 应用程序容器 
	 * @author lipi
	 */
	public class AppContainer extends UISprite
	{
		public function AppContainer()
		{
			super();
			this.mouseEnabled = false;
			_scenePanelLayer = new UISprite();
			addChild(_scenePanelLayer);
			
			_uiLayer = new UISprite();
			addChild(_uiLayer);
			
			_panelLayer = new UISprite();
			addChild(_panelLayer);
			
			_tipLayer = new UISprite();
			_tipLayer.mouseEnabled = false;
			addChild(_tipLayer);
			
			_popupLayer = new UISprite();
			addChild(_popupLayer);
			
			_popupTipsLayer = new UISprite();
			addChild(_popupTipsLayer);
			
			_reserveLayer = new UISprite();
			addChild(_reserveLayer);
			
			_loadingLayer = new UISprite();
			addChild(_loadingLayer);
			
			_mouseLayer = new UISprite();
			_mouseLayer.mouseEnabled = false;
			addChild(_mouseLayer);
		}
		
		
		
		private var _scenePanelLayer:UISprite;//
		private var _uiLayer:UISprite;//
		private var _panelLayer:UISprite;//
		private var _tipLayer:UISprite;
		private var _popupLayer:UISprite;
		private var _popupTipsLayer:UISprite;
		private var _reserveLayer:UISprite;
		private var _loadingLayer:UISprite;
		private var _mouseLayer:UISprite;
		
		/**
		 * 场景UI面板层，程序面板层做为场景的一个补充，如需要一个特殊的基于UI的场景可使用_panelLayer
		 * scenePanelLayer应该盖住整个场景
		 */
		public function get scenePanelLayer():UISprite 
		{
			return _scenePanelLayer;
		}
		
		/**
		 * UI层，UI层一般为主界面及好友列表所在层
		 */
		public function get uiLayer():UISprite 
		{
			return _uiLayer;
		}
		
		/**
		 * 程序面板层,通常为地图
		 * panelLyaer应该盖住整个场景
		 */
		public function get panelLyaer():UISprite 
		{
			return _panelLayer;
		}
		

		/**
		 * tips层
		 */
		public function get tipLayer():UISprite
		{
			return _tipLayer;
		}

		/**
		 * 弹出框层
		 */
		public function get popupLayer():UISprite
		{
			return _popupLayer;
		}

		/**
		 * 弹出框TIPS层
		 */
		public function get popupTipsLayer():UISprite
		{
			return _popupTipsLayer;
		}

		/**
		 * 保留层
		 */
		public function get reserveLayer():UISprite
		{
			return _reserveLayer;
		}

		/**
		 * loading层
		 * 
		 */
		public function get loadingLayer():UISprite
		{
			return _loadingLayer;
		}

		/**
		 * 鼠标层，鼠标样式层
		 */
		public function get mouseLayer():UISprite
		{
			return _mouseLayer;
		}

		
	}
}